package com.CST.mapper.cst.zx;

import com.CST.dto.zx.ProSelDTO;
import com.CST.entity.cb.BdDepartment;
import com.CST.entity.zx.ZX_Project;
import com.CST.vo.cb.BdSysUserDeptCodeVO;
import com.CST.vo.zx.EntryVo;
import com.CST.vo.zx.ProjectVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ZX_ProjectInfoMapper extends BaseMapper<ZX_Project> {

    List<ZX_Project> getCurrentProInfo();

    List<EntryVo> getProjectType(String type,@Param("userId") String userId);

    List<BdDepartment> getRootDept();

    List<BdDepartment> getDeptByRootCode(String rootDept);

    List<ProjectVo> getProjectVos(ProSelDTO proSelDTO);

    ProjectVo getProjectDetail(String financialCode);

    ZX_Project getFinancialByCode(@Param("financial_code") String financial_code);

    void addProject(ZX_Project t);

    Integer deleteProject(String financialCode);

    
    Integer isExistsRelationByFinancialCode(String financialCode);

    
    BdSysUserDeptCodeVO getDepartment(@Param("deptCode") String s);

    int updateProjectInfo(ZX_Project project);

    int updateBatchProjects(List<ZX_Project> list);

    int insertProjectInfo(ZX_Project project);

    int insertBatch(List<ZX_Project> list);

}
